﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ChiTietTinTuc : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
            return;
        if (Request["id"] != null)
        {
            int id = Convert.ToInt32(Request["id"].ToString());
            dtlHienThi.DataSource = new TinTucDAO().HienThiChiTietTinTuc(id);
            dtlHienThi.DataBind();

            dtlTinKhac.DataSource = new TinTucDAO().HienThiTinTucMoi(id);
            dtlTinKhac.DataBind();

            Page.Title = "Công ty TNHH Dịch vụ Toàn tâm - Tin tức";
            return;
        }
    }
}